package com.gzy.cbrsystem.shimian.action;
import com.gzy.cbrsystem.shimian.dao.ShimianBingzhen;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;
import com.opensymphony.xwork2.ActionSupport;
public class ViewCaseDetailAction extends ActionSupport{
	protected String fanliId;
    protected CaseReasoning caseReasoning;
    protected ShimianBingzhen shimianBingzhen;
	public String getFanliId() {
		return fanliId;
	}

	public void setFanliId(String fanliId) {
		this.fanliId = fanliId;
	}

	public CaseReasoning getCaseReasoning() {
		return caseReasoning;
	}

	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}
	public ShimianBingzhen getShimianBingzhen() {
		return shimianBingzhen;
	}

	public void setShimianBingzhen(ShimianBingzhen shimianBingzhen) {
		this.shimianBingzhen = shimianBingzhen;
	}

	public String execute()throws Exception{
		setShimianBingzhen((ShimianBingzhen)this.getCaseReasoning().findBingzhenByID(fanliId));
		return SUCCESS;
		
	}
	
}
